﻿namespace CoverageRunner.Core;

public class RunnerFactory
{
    public static ICoverageRunner CreateCoverageRunner(string id)
    {
        if (id == RunnerIds.OpenCppCoverage)
            return new OccRunner();
        if (id == RunnerIds.Gcovr)
            return new GcovrRunner();
        throw new ArgumentOutOfRangeException(nameof(id), id, "Runner non exists!!");
    }
}